package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.SocialUser;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: kaiyi
 * @create: 2020-09-08 16:20
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

  @PostMapping(value="/member/member/register")
  R register(@RequestBody UserRegistVo vo);

  @PostMapping(value = "/member/member/login")
  R login(@RequestBody UserLoginVo vo);

  @PostMapping(value = "/member/member/oauth2/login")
  R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;

//
//  @PostMapping(value = "/member/member/weixin/login")
//  R weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);


}
